package com.wu.wechat.common;


import com.wu.wechat.util.ConfigUtil;

/**
 * @Author Create by wuyanshen
 * @Date 2018-08-07 上午10:44
 * @Description 常量类
 */
public class Constant {

    /**
     * 与接口配置信息中的Token要一致
     */
    public static String TOKEN = ConfigUtil.get("token");

    /**
     * 第三方用户唯一凭证
     */
    public static String APPID = ConfigUtil.get("appId");

    /**
     * 第三方用户唯一凭证密钥
     */
    public static String APPSECRET = ConfigUtil.get("appSecret");

    public static String RESP_MESSAGE_TYPE_TEXT = "text";

    public static String REQ_MESSAGE_TYPE_TEXT = "text";

    public static String RESP_MESSAGE_TYPE_NEWS = "news";

    public static String REQ_MESSAGE_TYPE_NEWS = "news";


    /**
     * 请求消息类型：事件
     */
    public static final String REQ_MESSAGE_TYPE_EVENT = "event";

    /**
     * 事件类型：subscribe(关注)
     */
    public static final String EVENT_TYPE_SUBSCRIBE = "subscribe";

    /**
     * 事件类型：unsubscribe(取消关注)
     */
    public static final String EVENT_TYPE_UNSUBSCRIBE = "unsubscribe";

    /**
     * 事件类型：CLICK(自定义菜单点击事件)
     */
    public static final String EVENT_TYPE_CLICK = "CLICK";
}
